<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {

	});

	//예약 취소
	function sendData() {
		if(confirm("예약취소하시겠습니까?")){
			$("#sendData").submit();	
		}
	}
</script>

<form action="./pere503T.do" method="post" id="sendData">
<div style="display: none;">
<input name="p_id" value="${paramMap.p_id }" type="hidden"/>
<input name="rm_no" value="${paramMap.rm_no }" type="hidden"/>
<input name="send_bank" value="${paramMap.send_bank }" type="hidden"/>
<input name="send_bank_nm" value="${paramMap.send_bank_nm }" type="hidden"/>


<c:if test="${list !=null && fn:length(list)>0 }">
	<c:forEach var="map1" items="${list}" varStatus="status">
		<input name="idxs" value="${status.index }" type="hidden"/>
		<input name="pr_nos" value="${map1.pr_no }" type="hidden"/>
		<input name="reservation_dts" value="${map1.reservation_dt }" type="hidden"/>
	</c:forEach>
</c:if>

<c:if test="${rtAddSvcList !=null && fn:length(rtAddSvcList)>0 }">
	<c:forEach var="map1" items="${rtAddSvcList}" varStatus="status">
		<input name="idxs2" type="text" value="${status.index }"/>
		<input name="as_nos" value="${map1.as_no }" type="hidden"/>
	</c:forEach>
</c:if>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="10">
	<tr>
		<td>
			
			<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="20" valign="top"><table width="5" border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#60c930" height="10"></td>
							</tr>
						</table></td>
					<td valign="bottom" class="padl5"><strong>환불수수료</strong></td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="4" cellpadding="5"
				bgcolor="#edecec">
				<tr>
					<td bgcolor="#ffffff"><br> 환불규정에 의해 객실 예약금에 대해 수수료가 부과
						됩니다<br> <br>
						<table width="100%" border="0" cellspacing="1" cellpadding="8"
							bgcolor="#fdb936">
							<tr>
								<td bgcolor="#FFFFFF"><table width="100%" border="0"
										cellspacing="0" cellpadding="0">
										<tr>
											<td width="55"><img src="/usr/images/res_char.gif"
												width="47" height="57"></td>
											<td><table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td align="left">-<strong> 환불규정표 (숙박일기준 환불%)</strong></td>
													</tr>
												</table>
												<table width="100%" border="0" cellspacing="1"
													cellpadding="5" bgcolor="#DDDDDD">
													<tr align="center" bgcolor="#f5f5f5">
														<td>숙박당일</td>
														<td>1일전</td>
														<td>2일전</td>
														<td>3일전</td>
														<td>4일전</td>
														<td>5일전</td>
														<td>6일전</td>
														<td>7일전</td>
														<td>기본</td>
													</tr>
													<tr align="center" bgcolor="#FFFFFF">
					                                  <td>${refundList.day1 }%</td>
					                                  <td>${refundList.day_a_1 }%</td>
					                                  <td>${refundList.day_a_2 }%</td>
					                                  <td>${refundList.day_a_3 }%</td>
					                                  <td>${refundList.day_a_4 }%</td>
					                                  <td>${refundList.day_a_5 }%</td>
					                                  <td>${refundList.day_a_6 }%</td>
					                                  <td>${refundList.day_a_7 }%</td>
					                                  <td>${refundList.general }%</td>
													</tr>
												</table></td>
										</tr>
									</table></td>
							</tr>
						</table> <br> 부가서비스 당일 취소시 100%환불 불가 (문의 ${pensionInfo.p_tel1 }-${pensionInfo.p_tel2 }-${pensionInfo.p_tel3 })<br></td>
				</tr>
			</table> <br>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td><span class="blueb">※</span><strong> 객실예약 확인</strong></td>
				</tr>
				<tr>
					<td height="5"></td>
				</tr>
				<tr>
					<td><table width="100%" border="0" cellspacing="4"
							cellpadding="1" bgcolor="#edecec">
							<tr>
								<td bgcolor="#FFFFFF"><table width="100%" border="0"
										cellspacing="0" cellpadding="0">
										<tr align="center">
											<td width="10%" height="35" bgcolor="#fc636a"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">객실명</td>
													</tr>
												</table></td>
											<td width="14%" bgcolor="#fc636a" class="borderlw"><table
													width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr align="center">
														<td height="18" class="whiteb2">이용일자</td>
													</tr>
													<tr>
														<td height="1" bgcolor="#FFFFFF"></td>
													</tr>
													<tr align="center">
														<td height="16" class="whiteb2">예약일자</td>
													</tr>
												</table></td>
											<td width="9%" bgcolor="#fc636a" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">이용기간</td>
													</tr>
												</table></td>
											<td width="10%" bgcolor="#fc636a" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">기준/예약</td>
													</tr>
												</table></td>
											<td width="13%" bgcolor="#fc636a" class="borderlw"><table
													width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td height="18" colspan="2" align="center"><table
																border="0" cellspacing="0" cellpadding="0">
																<tr>
																	<td align="center" class="whiteb2"
																		style="padding-top: 2px;">추가인원</td>
																</tr>
															</table></td>
													</tr>
													<tr>
														<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
													</tr>
													<tr align="center">
														<td width="50%" height="16"><table border="0"
																cellspacing="0" cellpadding="0">
																<tr>
																	<td align="center" class="whiteb2"
																		style="padding-top: 2px;">성인</td>
																</tr>
															</table></td>
														<td width="50%" class="borderlw"><table border="0"
																cellspacing="0" cellpadding="0">
																<tr>
																	<td align="center" class="whiteb2"
																		style="padding-top: 2px;">아동</td>
																</tr>
															</table></td>
													</tr>
												</table></td>
											<td width="11%" bgcolor="#fc636a" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">기본요금</td>
													</tr>
												</table></td>
											<td width="11%" bgcolor="#fc636a" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">추가요금</td>
													</tr>
												</table></td>
											<td width="10%" bgcolor="#fc636a" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">할인요금</td>
													</tr>
												</table></td>
											<td width="12%" bgcolor="#fc636a" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">합계</td>
													</tr>
												</table></td>
										</tr>
										<tr>
											<td height="1" colspan="9" bgcolor="#FFFFFF"></td>
										</tr>
				<c:set var="totalPayD1" value="0"/>
				<c:set var="addPay" value="0"/>
				<c:set var="totalPayD2" value="0"/>
				<c:set var="totalPayLast" value="0"/>
				<c:set var="rPayLast" value="0"/>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:set var="room_nm_tmp" value=""/>
	<c:forEach var="map1" items="${list}" varStatus="status">

				<c:set var="totalPayD1" value="${totalPayD1 +map1.pay-map1.dc_pay }"/>
				<c:set var="addPay" value="${addPay +map1.pay_man_m }"/>
				<tr align="center">
<%-- 			<c:if test="${status.index==0 }"> --%>
<%-- 					<td height="30" bgcolor="#ffffff" class="borderbg" rowspan="${map1.rowspan }"><table --%>

						<td height="30" bgcolor="#ffffff" class="borderbg" ><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">
<%-- 									<input name="idxs" value="${status.index }" type="checkbox"/> --%>
									<input name="pr_nos" value="${map1.pr_no }" type="hidden"/>
									<input name="reservation_dts" value="${map1.reservation_dt }" type="hidden"/>
								</td>
								<td align="center" class="greenb2">${map1.room_nm } </td>
							</tr>
						</table></td>


<%-- 			</c:if> --%>

					<td bgcolor="#ffffff" class="borderlbg"><table width="100%"
							border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td align="center" class="greenb2">
<%-- 								${fn.substring(map1.nowdt,,4) } --%>

${fn:substring(map1.reservation_dt,2,4) }년
${fn:substring(map1.reservation_dt,4,6) }월
${fn:substring(map1.reservation_dt,6,8) }일
								</td>
							</tr>
							<tr>
								<td height="1" bgcolor="#c0c0bf"></td>
							</tr>
							<tr>
								<td align="center" class="greenb2">
${fn:substring(map1.nowdt,0,4) }년
${fn:substring(map1.nowdt,4,6) }월
${fn:substring(map1.nowdt,6,8) }일
								</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">1박</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">${map1.use_man_cnt }/${map1.totalMan }</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table width="100%"
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="30" align="center" class="greenb2">
									<!--0-->
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="50%" height="30" align="center"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.man_cnt }명</td>
													</tr>
												</table></td>
											<td width="50%" align="center" class="borderlg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.chi_cnt }명</td>
													</tr>
												</table></td>
										</tr>
									</table>
								</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.pay_man_m }" pattern="#,###"/>원
								</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.dc_pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
					<td bgcolor="#ffffff" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><span id="total_price"><fmt:formatNumber value="${map1.total_pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
				</tr>
	</c:forEach>
</c:if>
<c:if test="${list ==null || fn:length(list)==0 }">
				<tr>
					<td colspan="10" style="text-align: center;height: 30px;">데이터가 없습니다</td>
				</tr>
</c:if>
									</table></td>
							</tr>
						</table></td>
				</tr>
			</table>

<!-- 부가서비스 예약 -->
<c:if test="${rtAddSvcList !=null && fn:length(rtAddSvcList)>0 }">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td><span class="blueb">※</span><strong> 부가서비스 확인</strong></td>
				</tr>
				<tr>
					<td height="5"></td>
				</tr>
				<tr>
					<td><table width="100%" border="0" cellspacing="4"
							cellpadding="1" bgcolor="#edecec">
							<tr>
								<td bgcolor="#FFFFFF"><table width="100%" border="0"
										cellspacing="0" cellpadding="0">
										<tr align="center">
											<td width="17%" height="35" bgcolor="#4da6fa"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">서비스명</td>
													</tr>
												</table></td>
											<td width="13%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">주문수</td>
													</tr>
												</table></td>
											<td width="41%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">요구사항</td>
													</tr>
												</table></td>
											<td width="13%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">가격</td>
													</tr>
												</table></td>
											<td width="16%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">합계</td>
													</tr>
												</table></td>
										</tr>
										<tr>
											<td height="1" colspan="5" bgcolor="#FFFFFF"></td>
										</tr>
	<c:forEach var="map1" items="${rtAddSvcList}" varStatus="status">
		<c:if test="${map1.as_status=='R' || map1.as_status=='C'}">
		<c:set var="totalPayD2" value="${totalPayD2 +map1.totalPay }"/>
		</c:if>
			
										<tr align="center">
											<td height="30" bgcolor="#ffffff"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">
														${map1.as_nm }
		<c:if test="${map1.as_status!='R' }">
		<br/>(취소처리)
		</c:if>
														</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.use_cnt }${map1.as_unit }</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.req_msg }</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${map1.as_pay }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${map1.totalPay }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
										</tr>
	</c:forEach>
									</table></td>
							</tr>
						</table></td>
				</tr>
			</table>
</c:if>          
<!-- 부가서비스 예약 끝 --> 
			<br/>

			<table width="100%" border="0" cellspacing="4" cellpadding="1"
				bgcolor="#edecec">
				<tr>
					<td><table width="100%" border="0" cellspacing="4"
							cellpadding="1" bgcolor="#edecec">
							<tr>
								<td bgcolor="#FFFFFF"><table width="100%" border="0"
										cellspacing="0" cellpadding="0">
										<tr align="center">
											<td width="65%" height="35" bgcolor="#fafc98"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="dgrayb">구분</td>
													</tr>
												</table></td>
											<td width="35%" bgcolor="#fafc98" class="borderlb"><table
													border="0" cellpadding="0" cellspacing="0">
													<tr>
														<td align="center" class="dgrayb">금액</td>
													</tr>
												</table></td>
										</tr>
										<tr>
											<td height="1" colspan="2" bgcolor="#C0C0BF"></td>
										</tr>
										<tr align="center">
											<td height="30" bgcolor="#ffffff" class="borderbg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">객실기본요금합계</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlbg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${totalPayD1 }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
										</tr>
										<tr align="center">
											<td height="30" bgcolor="#ffffff" class="borderbg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">추가요금합계</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlbg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${addPay }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
										</tr>
										<tr align="center">
											<td height="30" bgcolor="#ffffff" class="borderbg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">부가서비스요금합계</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlbg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${totalPayD2 }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
										</tr>
										<tr align="center">
											<td height="30" bgcolor="#ffffff"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">결제금액</td>
													</tr>
												</table></td>
											<td bgcolor="#ffffff" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="redb">
															<fmt:formatNumber value="${totalPayD1+addPay+totalPayD2 }" pattern="#,###"/>원
															<c:set var="totalPayLast" value="${totalPayD1+addPay+totalPayD2 }"/>
														</td>
													</tr>
												</table></td>
										</tr>
									</table></td>
							</tr>
						</table></td>
				</tr>
			</table> <br> <br> <!--  -->
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td><table border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="10" height="20" align="right" valign="top"><table
										width="5" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td bgcolor="#0099FF" height="10"></td>
										</tr>
									</table></td>
								<td valign="bottom" class="padl5"><strong>무통장 입금</strong></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="5"></td>
				</tr>
				<tr>
					<td><table width="100%" border="0" cellpadding="0"
							cellspacing="1" bgcolor="#d8d8d8">
							<tr>
								<td width="130" height="3" bgcolor="#0099FF"></td>
								<td></td>
							</tr>
							<tr>
								<td height="30" align="center" bgcolor="#ffffff"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="greenb2">입금은행</td>
										</tr>
									</table></td>
								<td bgcolor="#FFFFFF" class="padl30">${paramMap.send_bank }</td>
							</tr>
							<tr>
								<td height="30" align="center" bgcolor="#ffffff"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="greenb2">입금자명</td>
										</tr>
									</table></td>
								<td bgcolor="#FFFFFF" class="padl30">${paramMap.send_bank_nm }</td>
							</tr>
							<tr>
								<td height="30" align="center" bgcolor="#ffffff"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="greenb2">입금대기시간</td>
										</tr>
									</table></td>
								<td bgcolor="#FFFFFF" class="padl30"><span class="pld">입금완료</span></td>
							</tr>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:forEach var="map1" items="${list}" varStatus="status">
							<tr>
								<td height="30" align="center" bgcolor="#ffffff"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="greenb2">
												<c:if test="${status.index==0 }">취소수수료</c:if>
											</td>
										</tr>
									</table></td>
								<td bgcolor="#FFFFFF" class="padl30"><table width="100%"
										border="0" cellpadding="0" cellspacing="0">
										<tr align="right">
											<td width="10%" align="left"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.room_nm }</td>
													</tr>
												</table></td>
											<td width="9%" align="right">${map1.dateCha }일전</td>
											<td width="9%" align="right" class="red"><span
												id="p_ref_text_0"> ${map1.per }% </span> <span id="p_ref_input_0"
												style="display: none"> <input type="text"
													name="p_ref_rate_0" value="10" style="width: 30px;"
													onKeyup="onlyDigit(this)" onBlur="rateSubmit(this)"
													maxlength="3">%
											</span></td>
											<td width="5%" align="right">환불</td>
											<td width="20%" align="right"><fmt:formatNumber value="${map1.total_pay-map1.add_pay }" pattern="#,###"/>원 /</td>
											<td width="7%" align="right" class="greenb">${map1.per }%</td>
											<td width="2%" align="right">=</td>
											<td width="14%" align="right" class="blueb">
												<fmt:formatNumber value="${map1.r_pay }" pattern="#,###"/>원
												<c:set var="rPayLast" value="${rPayLast + map1.r_pay }"/>
											</td>
											<td width="6%" align="right" class="pld">환불</td>
											<td width="18%" style="padding-right: 10px;"></td>
										</tr>
									</table></td>
							</tr>
	</c:forEach>
</c:if>
<c:if test="${rtAddSvcList !=null && fn:length(rtAddSvcList)>0 }">
							<tr>
								<td height="30" align="center" bgcolor="#ffffff"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="greenb2">부가서비스</td>
										</tr>
									</table></td>
								<td bgcolor="#FFFFFF" class="padl30"><table width="100%"
										border="0" cellpadding="0" cellspacing="0">
	<c:forEach var="map1" items="${rtAddSvcList}" varStatus="status">
										<tr align="right">
											<td width="15%" align="left"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.as_nm } ${map1.use_cnt }${map1.as_unit }</td>
													</tr>
												</table></td>
											<td width="4%" align="right"></td>
											<td width="9%" align="right" class="red"><span
												id="p_ref_text_ser_0"> 100% </span> <span
												id="p_ref_input_ser_0" style="display: none"> %
											</span></td>
											<td width="5%" align="right">환불</td>
											<td width="20%" align="right">(<fmt:formatNumber value="${map1.as_pay }" pattern="#,###"/>원 * ${map1.use_cnt }) /</td>
											<td width="7%" align="right" class="greenb">100%</td>
											<td width="2%" align="right">=</td>
											<td width="14%" align="right" class="blueb"><fmt:formatNumber value="${map1.totalPay }" pattern="#,###"/>원</td>
											<td width="6%" align="right" class="pld">환불</td>
											<td width="18%" style="padding-right: 10px;"></td>
										</tr>
	</c:forEach>

									</table></td>
							</tr>
</c:if>
						</table></td>
				</tr>
				<tr>
					<td height="28" align="right" style="padding-right: 10px;"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr align="right">
								<td>
									입금액	<span class="pld"><fmt:formatNumber value="${totalPayLast }" pattern="#,###"/>원</span> 	- 
									수수료	<span class="blueb"><fmt:formatNumber value="${totalPayD1-rPayLast }" pattern="#,###"/>원</span>
<%-- 									추가요금 <span class="blueb"><fmt:formatNumber value="${addPay }" pattern="#,###"/>원</span>	- --%>
<%-- 									부가서비스 <span class="blueb"><fmt:formatNumber value="${totalPayD2 }" pattern="#,###"/>원</span> --%>
									
									=	 <span class="pld"><fmt:formatNumber value="${totalPayLast-(totalPayD1-rPayLast) }" pattern="#,###"/>원</span>	환불 
								</td>
							</tr>
						</table></td>
				</tr>
			</table> <!--  --> <br> <br> 
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td height="20" valign="top"><table width="5" border="0"
								cellspacing="0" cellpadding="0">
								<tr>
									<td bgcolor="#60c930" height="10"></td>
								</tr>
							</table></td>
						<td valign="bottom" class="padl5"><strong>환불정보</strong></td>
						<td valign="bottom" class="padl5">익일오전중에 단체 입금됩니다.</td>
					</tr>
				</table>
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
					bgcolor="#d8d8d8">
					<tr>
						<td width="130" height="3" bgcolor="#60c930"></td>
						<td></td>
					</tr>
					<tr>
						<td height="30" align="center" bgcolor="#ffffff"><table
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td align="center" class="greenb2">입금은행</td>
								</tr>
							</table></td>
						<td bgcolor="#FFFFFF" class="padl30"><select
							name="account_type_nm" id="account_type_nm">
								<c:if test="${codeList04 !=null && fn:length(codeList04)>0 }">
									<c:forEach var="map1" items="${codeList04}" varStatus="status">
										<option value="${map1.code }">${map1.code }</option>
									</c:forEach>
								</c:if>
						</select> <input type="text" name="account_no" id="account_no"></td>
					</tr>
					<tr>
						<td height="30" align="center" bgcolor="#ffffff"><table
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td align="center" class="greenb2">예금주</td>
								</tr>
							</table></td>
						<td bgcolor="#FFFFFF" class="padl30"><table border="0"
								cellspacing="0" cellpadding="0">
								<tr>
									<td width="80"><input name="account_usr_nm" type="text"
										id="account_usr_nm" size="10"></td>
									<td><label><input type="checkbox" name="ref_bankuname_ck"
										id="ref_bankuname_ck">예약자명과 예금주명이 반드시 같아야합니다.</label></td>
<!-- 									<td class="paddtop3"></td> -->
								</tr>
							</table></td>
					</tr>
				</table>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td align="center"><table width="100" border="0"
								cellspacing="0" cellpadding="2">
								<tr>
									<td><a href="javascript:history.back()"><img
											src="/camping/img/reservation_bt02.jpg" width="114" height="36"></a></td>
									<td>
										<a href="#" onclick="sendData();">
											<img src="/usr/images/res_btn_cancelr.gif" width="114" height="36"/>
										</a>
									</td>
								</tr>
							</table></td>
					</tr>
				</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td align="center">&nbsp;</td>
				</tr>
				<tr>
					<td height="3" bgcolor="#86ad29"></td>
				</tr>
				<tr>
					<td style="padding-top: 2px;"><%@ include file="/WEB-INF/jsp/usr/pe/re/footer.jsp"%></td>
				</tr>
			</table></td>
	</tr>
</table>
</form>